import request from '@/utils/request'

export function all(serialno, params) {
  return request({
    url: `/api/cropGrowth/all/${serialno}`,
    method: 'get',
    params
  })
}

export function updateOne(id, data) {
  return request({
    url: '/idata/cropGrowth/' + id,
    method: 'patch',
    data
  })
}

export function addOne(id, data) {
  return request({
    url: '/idata/cropGrowth/' + id,
    method: 'patch',
    data
  })
}
